﻿using FreeFlow.Administration;
using System.Windows.Forms;

namespace FreeFlowAdministrator
{
  public class SearchAdaptor : Adaptor
  {
    private Server server;
    public SearchAdaptor(Server server)
		{
      this.server = server;
		}

    public override string Text
    {
      get 
      {
        return "Search";
      }
    }

    public override object Object
    {
      get
      {
        return server;
      }
    }

    public override int ImageIndex
    {
      get
      {
        return 40;
      }
    }

    public override Control GetRenderer()
    {
      SearchControl control = new SearchControl();
      control.LoadServer(server);
      return control;
    }
  }
}
